# -*- coding: utf-8 -*-
"""
注意导入models之前要先执行django.setup()
"""
from time import sleep

from celery_project.task import menu_task

from django.db import connection

def batch_apply_async():
    for i in range(20):
        menu_task.apply_async()
        sleep(1)
    pass


if __name__ == '__main__':
    # menu_task()

    # menu_task.apply_async()

    # batch_apply_async()

    pass
